import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p006 from './p006';
export default async function a003(fd: IFeidaoAiBrowserComponent, e: Event) {
	// todo 根据设备类型编号，取<设备设施种类equipment_kind>表“设备种类编号”“设备种类名称”，并将“设备种类名称”渲染在下拉框内
	const d = e.currentTarget as HTMLSelectElement;
	const equip_type_no = d.value.split(",")[1];
	if (equip_type_no) {
		const res = await nodejs('device-management/zj-000001/s005', {
			filter: {
				equip_type_no
			}
		});
		console.info(res);
		render(fd, res, p006, 'p006', 'inner');
	}


}
